Module-level declarations
Types
Link copied to clipboard
struct order_detail_info
Link copied to clipboard
entity sale_order
Link copied to clipboard
entity sale_record
Link copied to clipboard
entity storefront
Link copied to clipboard
entity storefront_state
Link copied to clipboard
object storefronts_config
Link copied to clipboard
struct transaction_detail_info
Link copied to clipboard
entity unclaimed_purchase
Link copied to clipboard
entity unclaimed_sale
Functions
Link copied to clipboard
Link copied to clipboard
function _get_asset_info(original_id: byte_array): (instance: asset_instance, item_name: text, interface: text)
Link copied to clipboard
function _get_storefront_state(storefront_griddable_id: integer, storefront_location: location): storefront_state
Link copied to clipboard
function _order_detail_info_from_sale_order_struct(sale_order: immutable_mirror_struct<sale_order>): order_detail_info
Link copied to clipboard
function _order_detail_info_from_sale_record_struct(sale_record: immutable_mirror_struct<sale_record>): order_detail_info
Link copied to clipboard
Link copied to clipboard
@extend(check_original_removable) function check_original_movable(griddable_id: integer, original_id: byte_array, location: location): map<text, boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@extend(on_placing) function (owner_id: byte_array, original_id: byte_array, griddable_id: integer, current_location: location?, new_location: location)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
function transfer_original_from_storefront(storefront_state: storefront_state, account_id: byte_array, original_id: byte_array, amount: integer)
Link copied to clipboard
function transfer_original_to_storefront(storefront_state: storefront_state, account_id: byte_array, original_id: byte_array, amount: integer)
Queries
Link copied to clipboard
@mount("storefronts.get_all_active_listings_for_storefront")
query get_all_active_listings_for_storefront(storefront_griddable_id: integer, storefront_location: location, applied_category_interfaces: list<text>, account_id: byte_array, from_sorting_score: integer, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_all_non_tradable_prototypes")
query get_all_non_tradable_prototypes(): list<text>
Link copied to clipboard
@mount("storefronts.get_order_details")
query get_order_details(order_id: text): (order_details: order_detail_info, is_active: boolean)
Link copied to clipboard
@mount("storefronts.get_storefronts_configs")
query get_storefronts_configs(): (enabled: boolean, listing_duration_in_millis: integer, public_flat_listing_fee_bjorn: integer, private_flat_listing_fee_bjorn: integer, public_asking_fee_percentage_bjorn: decimal, public_asking_fee_percentage_alice: decimal, private_asking_fee_percentage_bjorn: decimal, private_asking_fee_percentage_alice: decimal)
Link copied to clipboard
@mount("storefronts.get_user_active_listings_for_storefront")
query get_user_active_listings_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, applied_category_interfaces: list<text>, from_sorting_score: integer, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_user_expired_listings_for_storefront")
query get_user_expired_listings_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_user_transactions")
query get_user_transactions(account_id: byte_array, cursor: page_cursor): ((sale_records: list<transaction_detail_info>, purchase_records: list<transaction_detail_info>), max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_user_unclaimed_purchases_for_storefront")
query get_user_unclaimed_purchases_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_user_unclaimed_sales_for_storefront")
query get_user_unclaimed_sales_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Operations
Link copied to clipboard
@mount("storefronts.claim_all")
operation claim_all(storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.create_sale_orders")
operation create_sale_orders(orders: list<sale_info>, storefront_id: byte_array, storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.delete_all_user_expired_listings_for_storefront")
operation delete_all_user_expired_listings_for_storefront(storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.delete_orders")
operation delete_orders(order_ids: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.force_claim_and_delete_all_expired_for_storefront")
operation force_claim_and_delete_all_expired_for_storefront(storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.force_claim_sold_listings")
operation force_claim_sold_listings(batch_size: integer)
Link copied to clipboard
Link copied to clipboard
@mount("storefronts.purchase_orders_instant")
operation purchase_orders_instant(order_ids: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.purchase_orders_pickup_required")
operation purchase_orders_pickup_required(order_ids: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
Link copied to clipboard
@mount("storefronts.set_global_storefront_parameters")
operation set_global_storefront_parameters(enabled: boolean, listing_duration_in_millis: integer, public_flat_listing_fee_bjorn: integer, private_flat_listing_fee_bjorn: integer, public_asking_fee_percentage_bjorn: integer, public_asking_fee_percentage_alice: integer, private_asking_fee_percentage_bjorn: integer, private_asking_fee_percentage_alice: integer)